package com.xidian.yunwudemo.mapper.master;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xidian.yunwudemo.entities.UmsMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * UmsMenuMapper继承基类
 */

public interface UmsMenuMapper extends BaseMapper<UmsMenu> {
    /**
     * 根据后台用户ID获取菜单
     */
    List<UmsMenu> getMenuList(@Param("adminId") Long adminId);

    /**
     * 根据角色ID获取菜单
     */
    List<UmsMenu> getMenuListByRoleId(@Param("roleId") Long roleId);
}